<? Phpr_View::beginBlock("view") ?>
	<ul class="breadcrumbs">
		<li><a href="<?= $this->config_url() ?>">Home</a></li>
		<li><?= $this->app_page_title ?></li>
	</ul>

	<div class="form400">
		<p>On this page you can set encryption key which LemonStand uses for encrypting and decrypting data in the database. <strong>Important!</strong> If there is any encrypted data in the database, changing the encryption key will lead to impossibility to decrypt the data. You may need to change the encryption key if you are creating a new database or restoring the database from LemonStand archive. You need to know the encryption key for each database you use. It is not necessary to change the encryption key for each new database.</p>
		
		<?= Phpr_Form::openTag() ?>
		<div class="form">
			<!--[if IE]><fieldset class="ie_fix"><![endif]-->
				<div class="formFlash"></div>
				<!--[if IE]></fieldset><![endif]-->

				<div class="tabs">
					<ul class="tabs_tabs">
						<li class="round active"><a href="#tab_1">Encryption Key</a>
							<div class="lt"></div>
							<div class="rt"></div>
						</li>
					</ul>
					<div class="clear tab_separator"></div>

					<ul class="tabs_pages">
						<li id="tab_1" class="form_page">
							<ul class="formElements">
								<li class="field text full">
									<label for="key">
										Encryption Key <span class="required">*</span>
										<span class="comment">The encryption key must be at least 8 characters in length.</span>
									</label>

									<div class="fieldContainer">
										<input autocomplete="off" type="text" name="key" id="key" class="varchar" value=""/>
									</div>
									<div class="clear"></div>
								</li>
								
								<li class="field text full">
									<label for="password">
										Password <span class="required">*</span>
										<span autocomplete="off" class="comment">Please enter the Configuration Tool password.</span>
									</label>

									<div class="fieldContainer">
										<input autocomplete="off" type="password" name="password" id="password" class="varchar" value=""/>
									</div>

									<div class="clear"></div>
								</li>
							</ul>
							<div class="clear"></div>
						</li>
					</ul>
				</div>
			</div>
			<div class="clear"></div>

			<?= backend_ajax_button('Save', 'encryption_onSave', array()) ?>
			<?= backend_button('Cancel', $this->config_url()) ?>

			<div class="clear"></div>
		</form>
	</div>
<? Phpr_View::endBlock() ?>